package com.ruirenyun.util.common;

import java.util.Objects;

/**
 * @author zhouLiang
 * @create 2021-03-31 9:40
 * 应聘管理栏目分类 枚举
 */
public enum ChineseCharEnum {
    BO("B", "亳"),

    ZONG("Z", "枞"),
    QU("Q", "衢"),
    DAI("D", "岱"),
    SHENG("S", "嵊"),
    OU("O", "瓯"),
    YIN("Y", "鄞"),
    JIN("J", "缙"),
    WU("W", "婺"),
    ZHI("Z", "雉"),
    LI("L", "澧"),
    MENG("M", "勐"),
    QI("Q", "麒"),
    LU("L", "泸"),
    SONG("S", "嵩"),
    YI("Y", "迤"),
    ZI("Z", "茈"),
    QUAN("Q", "荃"),
    SHAN("S", "鄯"),
    QIE("Q", "伽"),
    JING("J", "泾"),
    FU("F", "孚"),
    XUN("X", "浔"),
    YII("Y", "弋"),
    CEN("C", "岑"),
    XIU("X", "岫"),
    DENG("X", "磴"),
    GA("G", "尕"),
    HUANG("H", "湟"),
    XIN("X", "昕"),
    LANG("L", "岚"),
    LIN("L", "麟"),
    XI("X", "隰"),
    YIII("Y", "猗"),
    WEN("W", "汶"),
    JUAN("J", "鄄"),
    JU("J", "莒"),
    BA("B", "灞"),
    TONG("T", "潼"),
    DOU("D", "窦"),
    QII("Q", "岐"),
    YING("Y", "荥"),
    GONG("G", "珙"),
    JUN("J", "筠"),
    LANGG("L", "阆"),
    ZII("Z", "梓"),
    QIAN("Q", "犍"),
    MU("M", "沐"),
    GAA("G", "呷"),
    JINGG("J", "旌"),
    QIONG("Q", "邛"),
    PI("P", "郫"),
    YINGG("Y", "颍"),
    SUI("S", "濉"),
    DANG("D", "砀"),
    GE("G", "圪"),
    AO("A", "鳌"),
    PO("P", "鄱"),
    LAO("L", "崂"),
    YIIII("Y", "峄"),
    TENG("T", "滕"),
    TAN("T", "郯"),
    SHEN("S", "莘"),
    CHI("C", "茌"),
    SI("S", "泗"),
    YAN("Y", "兖"),
    YUN("Y", "郓"),
    YANN("Y", "晏"),
    RUI("R", "芮"),
    JIANG("J", "绛"),
    JI("J", "稷"),
    KE("K", "岢"),
    MIN("M", "闵"),
    BAA("B", "鲅"),
    FUU("F", "芙"),
    LIAN("L", "潋"),
    HANG("H", "邗"),
    PII("P", "邳"),
    SUII("S", "睢"),
    SHU("S", "沭"),
    LII("L", "溧"),
    XU("X", "盱"),
    HUI("H","珲"),
    HUA("H","桦"),
    JIAO("J","蛟"),
    TAO("T","洮"),
    DAN("D","儋"),
    YOU("Y","攸"),
    LUU("L","渌"),
    LIII("L","醴"),
    TUO("T","沱"),
    LONG("L","泷"),
    WUU("W","浯"),
    XIAO("X","潇"),
    MI("M","汨"),
    YUAN("Y","沅"),
    ZHII("Z","芷"),
    XUU("X","芷"),
    LEI("L","耒"),
    LIU("L","浏"),
    ZIII("Z","秭"),
    JUNN("J","隽"),
    XII("X","浠"),
    CAO("C","漕"),
    QIII("Q","蕲"),
    PU("P","濮"),
    YANNN("Y","郾"),
    YIIIII("Y","驿"),
    HUANGG("H","潢"),
    YANNNN("Y","鄢"),
    ZHE("Z","柘"),
    MIAN("M","渑"),
    JIA("J","郏"),
    XIII("X","淅"),
    YANNNNN("Y","偃"),
    LUAN("L","栾"),
    QIIII("Q","杞"),
    QIIIII("Q","淇"),
    LUO("L","漯"),
    NE("N","讷"),
    ZHUO("Z","涿"),
    GAO("G","藁"),
    LAI("L","涞"),
    LIIII("L","蠡"),
    KONG("K","崆"),
    TANN("T","宕"),
    MINN("M","岷"),
    MEI("M","湄"),
    LIAO("L","蓼"),
    MINNN("M","珉"),
    RONG("R","榕"),
    ZHEN("Z","浈"),
    YONG("Y","邕"),
    QIIIIII("Q","覃"),
    HAO("H","濠"),
    CHAN("C","禅"),
    AN("A","庵"),
    XIANG("X","芗"),
    ZHAO("Z","诏"),
    BI("B","璧"),
    QIIIIIII("Q","綦"),
    QIAO("Q","谯"),
    JIU("J","鸠"),
    SHE("S","歙"),
    XUUU("X","溆"),
    YONGG("Y","埇"),
    BEN("B","倴"),
    MING("M","洺"),
    CHANN("C","瀍"),
    QUU("Q","灈"),
    QIAOO("Q","硚"),
    XIAOO("X","猇"),
    XUUUU("X","旴"),
    YANNNNNN("Y","漹"),
    YIIIIII("Y","黟");

    private String code;
    private String name;

    ChineseCharEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static String getCodeByName(String name) {
        if (null != name) {
            for (ChineseCharEnum temp : ChineseCharEnum.values()) {
                if (Objects.equals(name, temp.getName())) {
                    return temp.getCode();
                }
            }
        }
        return null;
    }
}
